<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
        
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <form action="" method="POST" id="rowForm">
            <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tablegrid tableedit">
                <tr align="left">
                    <th colspan="2" align="left"><?= $title ?></th>
                </tr>
                <tr><td><?= translate('MAIL_ISSUCCESS') ?>:</td><td><?= $row['issuccess'] ?></td></tr>
				<tr><td><?= translate('AREANAME') ?>:</td><td><?= $row['areanum'] ?></td></tr>
				<tr><td><?= translate('MAIL_ROLENAME') ?>:</td><td><?= $row['reciver_name'] ?></td></tr>
				<tr><td><?= translate('MAIL_ROLEID') ?>:</td><td><?= $row['receiver_id'] ?></td></tr>
				<tr><td><?= translate('MAIL_TITLE') ?>:</td><td><?= $row['mail_title'] ?></td></tr>				
				<tr><td><?= translate('MAIL_CONTENT') ?>:</td><td><?= $row['mail_content'] ?></td></tr>
				<tr><td><?= translate('MAIL_TIME_LIMIT') ?>:</td><td><?= $row['keep_time'] ?></td></tr>
				
				<tr><td><?= translate('MAIL_OBJECTID1') ?>:</td><td><?= $row['item0'] ?></td></tr>
				<tr><td><?= translate('MAIL_OBJECTNUM1') ?>:</td><td><?= $row['amount0'] ?></td></tr>
				<tr><td><?= translate('MAIL_EQUIPLV1') ?>:</td><td><?= $row['equiplv0'] ?></td></tr>
				
				<tr><td><?= translate('MAIL_OBJECTID2') ?>:</td><td><?= $row['item1'] ?></td></tr>
				<tr><td><?= translate('MAIL_OBJECTNUM2') ?>:</td><td><?= $row['amount1'] ?></td></tr>
				<tr><td><?= translate('MAIL_EQUIPLV2') ?>:</td><td><?= $row['equiplv1'] ?></td></tr>
				
				<tr><td><?= translate('MAIL_OBJECTID3') ?>:</td><td><?= $row['item2'] ?></td></tr>
				<tr><td><?= translate('MAIL_OBJECTNUM3') ?>:</td><td><?= $row['amount2'] ?></td></tr>
				<tr><td><?= translate('MAIL_EQUIPLV3') ?>:</td><td><?= $row['equiplv2'] ?></td></tr>
				
				<tr><td><?= translate('MAIL_OBJECTID4') ?>:</td><td><?= $row['item3'] ?></td></tr>
				<tr><td><?= translate('MAIL_OBJECTNUM4') ?>:</td><td><?= $row['amount3'] ?></td></tr>
				<tr><td><?= translate('MAIL_EQUIPLV4') ?>:</td><td><?= $row['equiplv3'] ?></td></tr>
				
				<tr><td><?= translate('MAIL_INSERT_TIME') ?>:</td><td><?= $row['insert_time'] ?></td></tr>
                
               <tr><td>&nbsp;</td><td>&nbsp;</td></tr> 
                <tr><td></td><td>
                    <input type="submit" value="<?= translate('SEND') ?>" id="submit"/>
                </td></tr>
            </table>
            <input type="hidden" value="<?= $id ?>" name='id'/>
        </form>
        <script type="text/javascript">
            SG.init("core.form", function() {
                $.formValidator.initConfig({formid: "#rowForm", submitonce: true});
                $("#area_host").formValidator({empty: false, onshow: '<?= translate('PLASE_SELECT') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#mail_title").formValidator({empty: false, onshow: '<?= translate('PLASE_WRITE') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#mail_content").formValidator({empty: false, onshow: '<?= translate('PLASE_WRITE') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#keep_time").formValidator({empty: false, onshow: '<?= translate('MAIL_TIME_LIMIT_MIN_MAX') ?>'}).inputValidator({type: 'number', min: 1, max: 30, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                //groupname();
            });
        </script>
    </body>
</html>
